﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyKho.Server.Dto
{
    public class TheKhoDto
    {
        public DateTime Ngay { get; set; }

        public string NgayDDMMYYYY 
        {
            get
            {
                if (Ngay != null)
                    return Ngay.ToString("dd/MM/yyyy");
                return string.Empty;
            }
        }

        public string SCTNhap { get; set; }

        public string SCTXuat { get; set; }

        public string TenNhaPhanPhoi { get; set; }

        public int SLNhap { get; set; }

        public string SLNhapString
        {
            get
            {
                if (SLNhap == 0)
                    return string.Empty;
                return SLNhap.ToString();
            }
        }

        public int SLXuat { get; set; }

        public string SLXuatString
        {
            get
            {
                if (SLXuat == 0)
                    return string.Empty;
                return SLXuat.ToString();
            }
        }

        public string GhiChu { get; set; }
    }
}
